Gets the second of the datetime represented by this instance
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(DateTime), | intent(in) | :: | time |
FUNCTION GetSecond & ! (time) & ! RESULT (second) IMPLICIT NONE ! Arguments with intent(in): TYPE (DateTime), INTENT(IN) :: time ! Local variables: INTEGER (KIND = short) :: second !------------end of declaration------------------------------------------------ second = time % second END FUNCTION GetSecond